<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<%@ include file="../jslib/jquerylib.jsp"%>
    <base href="<%=basePath%>">
    
    <title>框架管理</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript">
		function setFrameType(frametype)
		{
			setCookie("jframetype",frametype,1000)
			alert('操作成功，请重新登录！');
			document.location.href='../login.jsp';
		}
		
		function setCookie(c_name,value,expiredays)
		{
			var exdate=new Date()
			exdate.setDate(exdate.getDate()+expiredays)
			document.cookie=c_name+ "=" +escape(value)+
			((expiredays==null) ? "" : ";expires="+exdate.toGMTString()+";path=/;")
		}

	</script>

  </head>
  
  <body>
    <table >
    	<tr>
              <td>
                  <table>
                      <tr>
                          <td>
                              <img src="<%=request.getContextPath() %>/images/darkblue.png"  style="border:0px;width:420px; height:300px;"/>
                          </td>
                      </tr><tr>
                          <td style="text-align:center;">
                          	  <span onclick="setFrameType('jdarkblue')" style="cursor:hand;">暗蓝框架</span>
                          </td>
                      </tr>
                  </table>
              </td>
              <td>
                  <table>
                      <tr>
                          <td>
                              <img src="<%=request.getContextPath() %>/images/skyblue.png"  style="border:0px;width:420px; height:300px;"/>
                          </td>
                      </tr><tr>
                          <td style="text-align:center;">
                          	  <span onclick="setFrameType('jskyblue')" style="cursor:hand;">天蓝框架</span>
                          </td>
                      </tr>
                  </table>
              </td>
          </tr>
          <tr>
              <td>
                  <table>
                      <tr>
                          <td>
                              <img src="<%=request.getContextPath() %>/images/orange.png"  style="border:0px;width:420px; height:300px;"/>
                          </td>
                      </tr><tr>
                          <td style="text-align:center;">
                          	  <span onclick="setFrameType('jorange')" style="cursor:hand;">橙色框架</span>
                          </td>
                      </tr>
                  </table>
              </td>
              <td>
                  <table>
                      <tr>
                          <td>
                              <img src="<%=request.getContextPath() %>/images/treeframe.png"  style="border:0px;width:420px; height:300px;"/>
                          </td>
                      </tr><tr>
                          <td style="text-align:center;">
                          	  <span onclick="setFrameType('jtree')" style="cursor:hand;">树框架</span>
                          </td>
                      </tr>
                  </table>
              </td>
          </tr>
    </table>
  </body>
</html>
